//BMP c++源文件、构造函数、析构函数 
#include "BMP.h"

//构造函数
BMP::BMP(string fileName)
{
    cout << "带参构造" << endl;

    //并获取图片的尺寸、RGB的数据
    //具体代码略过

    //width = ...
    //height = ...
    //RGB = ...

    this->fileName = fileName;


    RGB = new char[10*1024];    //需要返还内存，不然会造成内存泄漏
}

//析构函数
BMP::~BMP()
{
    delete [] RGB;
}

